<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/page/common/head.jsp"%>
        <div class="right">
            <div class="location">
                <strong>当前位置:</strong>
                <span>供货商管理页面</span>
            </div>
            <div class="search">
           		<form method="get" action="${pageContext.request.contextPath }/sys/goodssupplier/list">
					 <span>供货商名称：</span>
					 <input name="supplierName" class="input-text"	type="text" value="${supplierName}">
					 <span>供货商编号：</span>
					<input name="supplierCode" class="input-text"	type="text" value="${supplierCode}">
	        		</select>
					 <input type="hidden" name="pageIndex" value="1"/>
					 <input	value="查 询" type="submit" id="searchbutton">
					 <a href="${pageContext.request.contextPath}/addgoodsSupplier" >添加</a>
				</form>
            </div>
            <!--用户-->
            <table class="supplierTable" cellpadding="0" cellspacing="0">
                <tr class="firstTr">
                    <th width="10%">供货商编号</th>
                    <th width="12%">供货商名称</th>
                    <th width="26%">供货商描述</th>
                    <th width="8%">供货商联系人</th>
                    <th width="10%">供货商联系电话</th>
                    <th width="14%">供货商地址</th>
					<th width="10%">传真</th>
                    <th width="20%">操作</th>
                </tr>
                   <c:forEach var="goods" items="${pageInfo.list }" varStatus="status">
					<tr>
						<td>
						<span>${goods.supplierCode }</span>
						</td>
						<td>
						<span>${goods.supplierName }</span>
						</td>
						<td>
							<span>${goods.supplierDesc}</span>
						</td>
						<td>
							<span>${goods.supplierContact}</span>
						</td>
						<td>
						<span>${goods.supplierTel}</span>
						</td>
						<td>
						<span>${goods.supplierAddress}</span>
						</td>
						<td>
							<span>${goods.fax}</span>
						</td>
						<td>
						<span><a class="viewUser" href="${pageContext.request.contextPath}/getAllGoods/${goods.id}" userid=${goods.id } account=${goods.supplierName }><img src="${pageContext.request.contextPath }/statics/images/view.png" alt="查看" title="查看"/></a></span>
						<span><a class="modifyUser" href="${pageContext.request.contextPath}/updateGoods/${goods.id}" userid=${goods.id } account=${goods.supplierName }><img src="${pageContext.request.contextPath }/statics/images/upd.png" alt="修改" title="修改"/></a></span>
						<span><a class="deleteUser" onclick="deleteById('/deletGoods/',${goods.id})"  userid=${goods.id } account=${goods.supplierName }><img src="${pageContext.request.contextPath }/statics/images/del.png" alt="删除" title="删除"/></a></span>
						</td>
					</tr>
				</c:forEach>
			</table>
			<div class="page-bar">
				<ul class="page-num-ul clearfix">
					<li>共${pageInfo.total}条记录&nbsp;&nbsp; ${pageInfo.pageNum}/${pageInfo.pages}页&nbsp;&nbsp;&nbsp;&nbsp;</li>
					<c:if test="${!pageInfo.isFirstPage}">
						<a href="${pageContext.request.contextPath}/sys/goodssupplier/list?pageIndex=1&supplierName=${supplierName}&supplierCode=${supplierCode}">首页</a>
						<a href="${pageContext.request.contextPath}/sys/goodssupplier/list?pageIndex=${pageInfo.pageNum-1}&supplierName=${supplierName}&supplierCode=${supplierCode}">上一页</a>
					</c:if>
					<c:if test="${!pageInfo.isLastPage}">
						<a href="${pageContext.request.contextPath}/sys/goodssupplier/list?pageIndex=${pageInfo.pageNum+1}&supplierName=${supplierName}&supplierCode=${supplierCode}">下一页</a>
						<a href="${pageContext.request.contextPath}/sys/goodssupplier/list?pageIndex=${pageInfo.pages}&supplierName=${supplierName}&supplierCode=${supplierCode}">尾页</a>&nbsp;&nbsp;
					</c:if>
					</ul>
				<span class="page-go-form"><label>跳转至</label>
	     <input type="text" name="inputPage" id="inputPage" class="page-key" />页
	     <button type="button" onclick="goindex('/sys/goodssupplier/',${pageInfo.pages})" class="page-btn" >GO</button>
    </span>
			</div>

<!--点击删除按钮后弹出的页面-->


<%@include file="/WEB-INF/page/common/foot.jsp" %>

